// import createHeading from "./heading.js";
import "./style.css";
// import printMe from "./print.js";
import { cube } from "./math.js";

if (process.env.NODE_ENV !== "production") {
  console.log("Looks like we are in development mode!");
}

function component() {
  var element = document.createElement("pre");

  element.innerHTML = [
    "Hello webpack!!",
    "5 cubed is equal to " + cube(5)
  ].join("\n\n\n");

  return element;
}

document.body.appendChild(component());
// if (module.hot) {
//   module.hot.accept("./print.js", function() {
//     console.log("Accepting the updated printMe module!");
//     printMe();
//   });
// }
